package junker.defence.model;

public class CreateRequest extends GameRequest {
	private Map						map;
	private MapObjectDescription	mapObjectDescription;
	private MapLocation				mapLocation;
	private long					createTime;

	public CreateRequest(Behaviour cap, Map map,
			MapObjectDescription mapObjectDescription, MapLocation mapLocation,
			long createTime) {
		super(cap);
		this.map = map;
		this.mapObjectDescription = mapObjectDescription;
		this.mapLocation = mapLocation;
		this.createTime = createTime;
	}
	
	public CreateRequest(Map map,
			MapObjectDescription mapObjectDescription, MapLocation mapLocation) {
		super(null);
		this.map = map;
		this.mapObjectDescription = mapObjectDescription;
		this.mapLocation = mapLocation;
		this.createTime = -1;
	}


	public MapObjectDescription getMapObjectDescription() {
		return mapObjectDescription;
	}

	public Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
	}

	public void setMapObjectDescription(
			MapObjectDescription mapObjectDescription) {
		this.mapObjectDescription = mapObjectDescription;
	}

	public MapLocation getMapLocation() {
		return mapLocation;
	}

	public void setMapLocation(MapLocation mapLocation) {
		this.mapLocation = mapLocation;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public long getCreateTime() {
		return createTime;
	}

}
